package com.a.emp.entity;

import java.io.Serializable;
import java.util.Date;

public class Emp implements Serializable {
    private Integer eno;
    private String ename;
    private String esex;
    private double salary;
    private String pwd;
    private Integer dno;
    private Date bornDate;
    private Integer flag;

    public Emp(Integer eno, String ename, String esex, double salary, String pwd, Integer dno, Date bornDate, Integer flag) {
        this.eno = eno;
        this.ename = ename;
        this.esex = esex;
        this.salary = salary;
        this.pwd = pwd;
        this.dno = dno;
        this.bornDate = bornDate;
        this.flag = flag;
    }

    public Emp() {
    }

    public Emp(String ename, String esex, double salary, String pwd, Integer dno, Date bornDate, Integer flag) {
        this.ename = ename;
        this.esex = esex;
        this.salary = salary;
        this.pwd = pwd;
        this.dno = dno;
        this.bornDate = bornDate;
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "eno=" + eno +
                ", ename='" + ename + '\'' +
                ", esex='" + esex + '\'' +
                ", salary=" + salary +
                ", pwd='" + pwd + '\'' +
                ", dno=" + dno +
                ", bornDate=" + bornDate +
                ", flag=" + flag +
                '}';
    }

    public Integer getEno() {
        return eno;
    }

    public void setEno(Integer eno) {
        this.eno = eno;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public String getEsex() {
        return esex;
    }

    public void setEsex(String esex) {
        this.esex = esex;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public Integer getDno() {
        return dno;
    }

    public void setDno(Integer dno) {
        this.dno = dno;
    }

    public Date getBornDate() {
        return bornDate;
    }

    public void setBornDate(Date bornDate) {
        this.bornDate = bornDate;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }
}
